package QueryHandler;

import java.util.Vector;

import DB.Table;

/*
 * Abstract class that represents Predicates 
 */

public abstract class Predicate extends RelationVar{

/*
 * Constructor - uses "RelationVar"'s constructor
 */
	
	public Predicate(String name) {
		super(name);
	}
	
/*
 * Every class which inherit from this class, check which tuples
 * in the specific Table satisfy the predicate 
 */
	
	public abstract boolean checkPred(Table table,Vector<String> tuple);
	
/*
 * @see QueryHandler.RelationVar#isVar()
 * 
 * In this class we return false - it is a predicate
 * (avoiding "InstanceOf")
 */
	
	public boolean isVar(){
		return false;
	}
	

	
}
